<!-- <template>
	<view>
		<view>
			<view>1.容器组件</view>
			<view class="smart-item"@click="goDetailPage('view')"><text>view视图</text></view>
			<view class="smart-item"@click="goDetailPage('scroll-view')"><text>scroll-view视图</text></view>
			<view class="smart-item"@click="goDetailPage('swiper')"><text>swiper视图</text></view>
		</view>
		<view>
			<view>2.基础内容</view>
			<view class="smart-item"@click="goDetailPage('text')"><text>text文本编辑</text></view>
			<view class="smart-item"@click="goDetailPage('rich-text')"><text>rich-text文本编辑</text></view>
			<view class="smart-item"@click="goDetailPage('progress')"><text>progress进度条</text></view>
		</view>
		<view>
			<view>3.表单组件</view>
			<view class="smart-item"@click="goDetailPage('button')"><text>button按钮</text></view>
			<view class="smart-item"@click="goDetailPage('radio')"><text>radio单选按钮</text></view>
			<view class="smart-item"@click="goDetailPage('input')"><text>input输入控件</text></view>
			<view class="smart-item"@click="goDetailPage('picker')"><text>picker选择列表</text></view>
			<view class="smart-item"@click="goDetailPage('slider')"><text>slider滑块</text></view>
			<view class="smart-item"@click="goDetailPage('switch')"><text>switch开关</text></view>
			<view class="smart-item"@click="goDetailPage('textarea')"><text>textarea多行文本</text></view>
			<view class="smart-item"@click="goDetailPage('checkbox')"><text>checkbox多选框</text></view>
			<view class="smart-item"@click="goDetailPage('form')"><text>form表单</text></view>
		</view>
		<view>
			<view>4.媒体组件</view>
			<view class="smart-item"@click="goDetailPage('image')"><text>image图片</text></view>
			<view class="smart-item"@click="goDetailPage('audio')"><text>audio音频</text></view>
			<view class="smart-item"@click="goDetailPage('video')"><text>video视频</text></view>
		</view>
		<view>
			<view>5.地图组件</view>
			<view class="smart-item"@click="goDetailPage('map')"><text>map地图</text></view>
		</view>
		<view>
			<view>6.导航组件</view>
			<view class="smart-item"@click="goDetailPage('navigator')"><text>navigator导航组件</text></view>
		</view>
	</view>
</template>

<script>
	export default {
		data(){
			return{
				
			}
		},
		methods:{
			goDetailPage(e){
				console.log(e);
				uni.navigateTo({
					url:'/pages/components/'+e+'/'+e,
				})
			}
		}
	}
</script>

<style>
	.smart-item {
			background-color: #F1F1F1;
			/*背景色*/
			font-size: 40upx;
			/*字体大小*/
			margin: 20upx;
			/*外间距*/
			height: 80upx;
			/*行高*/
			line-height: 80upx;
			padding-left: 30upx;
		}

</style> -->

<template>
	<view>
		<!-- <test></test>
		<test v-if="flag"></test>
		<button type="primary" @click="checkTest">切换test组件</button> -->
	<!-- <test :title='title' :name='name'></test>
	<test :title="title" @myEven="getNum"></test>
	这是子组件传递过来的数据{{num}} -->
	<!-- <"test-a"></"test-a">
	<"test-b"></"test-b"> -->
	<uni-calender
		:insert="true"
		:lunar="true"
		:start-date="'2024-9-1'"
		:end-date="'2024-9-9'"
		@change="change"
		>
	</uni-calender>
	
	</view>
</template>

<script>
	import test from '../../../pages/components/uni-calendar/test.vue'
	import testA from '../../components/uni-calendar/a.vue'
	import testB from '../../components/uni-calendar/b.vue'
	
	export default{
		data(){
			return{
				title:'Hello',
				name:'hxy',
				num:0,
				flag:true
			}
		},
		components:{
			test,
			"test-a":testA,
			"test-b":testB,
			uniCalender
		},
		methods:{
				getNum(num){
					console.log(num)
					this.num=num
				},
				change(e){
					console.log('触发了change',e)
				}
			}
	}
</script>